class 56lea.comController extends PqController{
    static NAME:string="56lea.comController";
    private pxy:56lea.comProxy;
    private bgDict:Object;
    constructor(){
        super();
        //this.btnNameList.push("submit");
        //this.funcList.push(this.submit);
        this.target = this;
    }
    public execute(param:Object=null,type:string=null){
        switch(type){
            case 56lea.comCmd.SHOW_WINDOW:
                this.showWindow();
            break;
            case 56lea.comCmd.CLOSE_WINDOW:
                this.closeWindow();
            break;
            case 56lea.comCmd.MODULE_NAME:
                this.initView();
            break;
        }
    }
    private initView(){
        this.ui=new 56lea.comView();
        this.pxy=this.getProxy(56lea.comProxy.NAME);
        this.inited=true;
        this.showWindow();
    }
    private showWindow(){
        if(!this.inited){
            this.call(SysCmd.LOAD_MODULE_RES,56lea.comCmd.MODULE_NAME);
            return;
        }
        this.call(SysCmd.ADD_TO_STAGE,this.ui);
        this.createView();
    }
    private closeWindow(){

    }
    private createView(){
        /*this.ui.x=this.ui.stage.stageWidth/2;
        this.ui.y=this.ui.stage.stageHeight/2;*/
    }
}